package com.health.mapp.enums;

/**
 * Created by helili on 2017/2/24.
 */
public enum  OrderTypeEnum {
    TUZX("1", "图文咨询"), DHZX("2", "电话咨询"),SPZX("3","视频咨询"),SESY("4","首儿送药");
    private String value;
    private String name;

    private OrderTypeEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {
        return value;
    }


    public String getName() {
        return name;
    }

    public static OrderTypeEnum valueOfEnum(String value) {
        if (null == value) {
            return null;
        }
        for (OrderTypeEnum type : OrderTypeEnum.values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        return null;
    }
}
